package com.alan.demo.base;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

public class IPageInfo<T> extends Page<T> {

    private static final long serialVersionUID = 8091940070756181147L;

    public IPageInfo() {
    }

    public IPageInfo(long current, long size) {
        super(current, size);
    }

    public IPageInfo(long current, long size, long total) {
        super(current, size, total);
    }

    public IPageInfo(long current, long size, boolean isSearchCount) {
        super(current, size, isSearchCount);
    }

    public IPageInfo(long current, long size, long total, boolean isSearchCount) {
        super(current, size, total, isSearchCount);
    }

    private Object other;

    public long getPageNum() {
        return getCurrent();
    }

    public long getPageSize() {
        return getSize();
    }

    public List<T> getList() {
        return getRecords();
    }

    public void setList(List<T> list) {
        super.setRecords(list);
    }

    @Override
    public List<T> getRecords() {
        return super.getRecords();
    }

    @Override
    public long getSize() {
        return super.getSize();
    }

    @Override
    public long getCurrent() {
        return super.getCurrent();
    }

    @Override
    public boolean isSearchCount() {
        return super.isSearchCount();
    }

    public Object getOther() {
        return other;
    }

    public void setOther(Object other) {
        this.other = other;
    }
}
